package com.xiexiaozhou.helper.web.from;

import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

@Data
public class OrderForTakeForm {

    @NotEmpty(message = "帮取的物品不能为空")
    private String goods;

    @NotEmpty(message = "取货地址不能为空")
    private String pickupAddress;

    @NotEmpty(message = "收货人姓名不能为空")
    private String consignee;

    @NotEmpty(message = "收货人电话不能为空")
    private String consigneeMobile;

    @NotEmpty(message = "收货人地址不能为空")
    private String customerAddress;

    private String detail;

    private Integer serviceType = 2;

    public OrderForTakeForm() {
    }

    public OrderForTakeForm(String goods, String pickupAddress, String consignee, String consigneeMobile, String customerAddress, String detail, Integer serviceType) {
        this.goods = goods;
        this.pickupAddress = pickupAddress;
        this.consignee = consignee;
        this.consigneeMobile = consigneeMobile;
        this.customerAddress = customerAddress;
        this.detail = detail;
        this.serviceType = serviceType;
    }

    public OrderForTakeForm(
            String goods,
            String pickupAddress,
            String consignee,
            String consigneeMobile,
            String customerAddress,
            String detail) {
        this.goods = goods;
        this.pickupAddress = pickupAddress;
        this.consignee = consignee;
        this.consigneeMobile = consigneeMobile;
        this.customerAddress = customerAddress;
        this.detail = detail;
    }
}
